<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nih: spherical/mappings.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nih
   &#160;<span id="projectnumber">0.5</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('mappings_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">spherical/mappings.h File Reference</div>  </div>
</div>
<div class="contents">

<p>Defines various spherical mappings.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;nih/basic/numbers.h&gt;</code><br/>
<code>#include &lt;<a class="el" href="vector_8h_source.html">nih/linalg/vector.h</a>&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<code>#include &lt;nih/spherical/mappings_inline.h&gt;</code><br/>
</div>
<p><a href="mappings_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#gabb50d34723dc8f63f83481dda7e4538a">nih::from_spherical_coords</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#gae14d642cb444062ebf966fc27f379972">nih::to_spherical_coords</a> (const Vector3f &amp;vec)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga5852f54031a04a3c2622ac9c1c3ee181">nih::square_to_unit_disk</a> (const Vector2f uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga4c1322b35d3548385cfbcde647eaa9b6">nih::unit_disk_to_square</a> (const Vector2f disk)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga8b4bb2387e2dcc609267e00777c753d1">nih::square_to_cosine_hemisphere</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga1e65205c0882ccfa8b8cea7ab18525ce">nih::cosine_hemisphere_to_square</a> (const Vector3f &amp;dir)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector3f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga711e9a117559053c96478f404aa2a278">nih::uniform_square_to_sphere</a> (const Vector2f &amp;uv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NIH_HOST NIH_DEVICE Vector2f&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__spherical__mappings.html#ga74d80bd5bc66492ae691520586329be5">nih::uniform_sphere_to_square</a> (const Vector3f &amp;vec)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Defines various spherical mappings. </p>
</div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="mappings_8h.html">mappings.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Thu Dec 15 2011 11:56:21 for nih by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
